package com.ruiyin.controller;

import com.ruiyin.service.SpiderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SpiderController extends BaseController{
    @Autowired
    private SpiderService service;

    @ResponseBody
    @RequestMapping("WebMagic")
    public Object WebMagic(){
        service.Main();
        return sendSuccess("ok");
    }
}
